package org.voyager.service.front.subsystem;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.voyager.common.beans.JsonResult;
import org.voyager.common.constants.ServiceIdDict;
import org.voyager.service.front.VO.AdResourceVo;
import org.voyager.service.front.fallback.AdClientFallBack;

@FeignClient(name = ServiceIdDict.SERVICE_ID_ADMIN, fallback = AdClientFallBack.class)
public interface AdClient {

	@RequestMapping(value = "/ad/resource/list", method = RequestMethod.POST)
    JsonResult queryAds(@RequestBody AdResourceVo adResourceVo);
	
}
